﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010D7 RID: 4311
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneMonster : IMessage<SceneMonster>, IMessage, IEquatable<SceneMonster>, IDeepCloneable<SceneMonster>, IBufferMessage
	{
		// Token: 0x1700369A RID: 13978
		// (get) Token: 0x0600C0D9 RID: 49369 RVA: 0x00209E70 File Offset: 0x00208070
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneMonster> Parser
		{
			get
			{
				return SceneMonster._parser;
			}
		}

		// Token: 0x1700369B RID: 13979
		// (get) Token: 0x0600C0DA RID: 49370 RVA: 0x00209E77 File Offset: 0x00208077
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneMonsterReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700369C RID: 13980
		// (get) Token: 0x0600C0DB RID: 49371 RVA: 0x00209E89 File Offset: 0x00208089
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneMonster.Descriptor;
			}
		}

		// Token: 0x0600C0DC RID: 49372 RVA: 0x00209E90 File Offset: 0x00208090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneMonster()
		{
		}

		// Token: 0x0600C0DD RID: 49373 RVA: 0x00209E98 File Offset: 0x00208098
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneMonster(SceneMonster other) : this()
		{
			this.maxHp_ = other.maxHp_;
			this.curHp_ = other.curHp_;
			this.monsterId_ = other.monsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C0DE RID: 49374 RVA: 0x00209ED5 File Offset: 0x002080D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneMonster Clone()
		{
			return new SceneMonster(this);
		}

		// Token: 0x1700369D RID: 13981
		// (get) Token: 0x0600C0DF RID: 49375 RVA: 0x00209EDD File Offset: 0x002080DD
		// (set) Token: 0x0600C0E0 RID: 49376 RVA: 0x00209EE5 File Offset: 0x002080E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxHp
		{
			get
			{
				return this.maxHp_;
			}
			set
			{
				this.maxHp_ = value;
			}
		}

		// Token: 0x1700369E RID: 13982
		// (get) Token: 0x0600C0E1 RID: 49377 RVA: 0x00209EEE File Offset: 0x002080EE
		// (set) Token: 0x0600C0E2 RID: 49378 RVA: 0x00209EF6 File Offset: 0x002080F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurHp
		{
			get
			{
				return this.curHp_;
			}
			set
			{
				this.curHp_ = value;
			}
		}

		// Token: 0x1700369F RID: 13983
		// (get) Token: 0x0600C0E3 RID: 49379 RVA: 0x00209EFF File Offset: 0x002080FF
		// (set) Token: 0x0600C0E4 RID: 49380 RVA: 0x00209F07 File Offset: 0x00208107
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x0600C0E5 RID: 49381 RVA: 0x00209F10 File Offset: 0x00208110
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneMonster);
		}

		// Token: 0x0600C0E6 RID: 49382 RVA: 0x00209F20 File Offset: 0x00208120
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneMonster other)
		{
			return other != null && (other == this || (this.MaxHp == other.MaxHp && this.CurHp == other.CurHp && this.MonsterId == other.MonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C0E7 RID: 49383 RVA: 0x00209F7C File Offset: 0x0020817C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MaxHp != 0U)
			{
				num ^= this.MaxHp.GetHashCode();
			}
			if (this.CurHp != 0U)
			{
				num ^= this.CurHp.GetHashCode();
			}
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C0E8 RID: 49384 RVA: 0x00209FED File Offset: 0x002081ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C0E9 RID: 49385 RVA: 0x00209FF5 File Offset: 0x002081F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C0EA RID: 49386 RVA: 0x0020A000 File Offset: 0x00208200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurHp != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.CurHp);
			}
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.MonsterId);
			}
			if (this.MaxHp != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.MaxHp);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C0EB RID: 49387 RVA: 0x0020A078 File Offset: 0x00208278
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MaxHp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxHp);
			}
			if (this.CurHp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurHp);
			}
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C0EC RID: 49388 RVA: 0x0020A0E8 File Offset: 0x002082E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneMonster other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MaxHp != 0U)
			{
				this.MaxHp = other.MaxHp;
			}
			if (other.CurHp != 0U)
			{
				this.CurHp = other.CurHp;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C0ED RID: 49389 RVA: 0x0020A14C File Offset: 0x0020834C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C0EE RID: 49390 RVA: 0x0020A158 File Offset: 0x00208358
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 72U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.MaxHp = input.ReadUInt32();
						}
					}
					else
					{
						this.MonsterId = input.ReadUInt32();
					}
				}
				else
				{
					this.CurHp = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004DE8 RID: 19944
		private static readonly MessageParser<SceneMonster> _parser = new MessageParser<SceneMonster>(() => new SceneMonster());

		// Token: 0x04004DE9 RID: 19945
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004DEA RID: 19946
		public const int MaxHpFieldNumber = 14;

		// Token: 0x04004DEB RID: 19947
		private uint maxHp_;

		// Token: 0x04004DEC RID: 19948
		public const int CurHpFieldNumber = 8;

		// Token: 0x04004DED RID: 19949
		private uint curHp_;

		// Token: 0x04004DEE RID: 19950
		public const int MonsterIdFieldNumber = 9;

		// Token: 0x04004DEF RID: 19951
		private uint monsterId_;
	}
}
